package cn.hniu.service;

import cn.hniu.pojo.TextPosts;
import cn.hniu.pojo.Topics;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface TextPostsService {
    //查询帖子
     public List<TextPosts> findTextPosts(String data,Integer begin, Integer size);//data搜索数据，begin当前页，size一页几条
    //修改帖子
    public Integer updateTextPosts(TextPosts textPosts);
    //删除帖子
    public Integer deleteTextPosts(Integer id);
    //查询帖子浏览量 后端 查询 帖子表
    public List<TextPosts> findTextPostsByflowrate();
}
